package com.lxf.cloudfeign.client.otherClient;

import com.alibaba.fastjson.JSONObject;
import com.lxf.cloudfeign.client.orderClent.OrderClientBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 罗兴发
 * @data 2025/6/30 9:36
 * @description：浏览记录
 */
@FeignClient(name="cloudOther",fallback = OrderClientBack.class)
@RequestMapping("/other") //nocas中配置的path路径
public interface OtherClient {

    /**
     * 添加浏览记录
     * @param json
     * @return
     */
    @PostMapping("/v1/addPlayHistory")
    String addPlayHistory(@RequestBody JSONObject json);

    /**
     * 根据用户ID、对象ID、对象类型以及相应标识获取是否点赞/收藏
     * @param json
     * @return
     */
    @PostMapping("/v1/getUserCLRById")
    String getUserCLRById(@RequestBody JSONObject json);
}
